home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / NextAnswers / 1221_invalid_Text_methods.rtf < prev    next >
Text File  |  1995-06-12  |  1KB  |  34 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;\f3\fmodern Ohlfs;}
  2. \paperw11440
  3. \paperh7680
  4. \margl120
  5. \margr120
  6. {\colortbl;\red84\green84\blue84;\red83\green83\blue83;\red82\green82\blue82;}
  7. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ulnone\fs28\fc0\cf0 Q:  In my application I have overridden the Text object methods:  \
  8. \
  9.  
  10. \f1\fs24\fi720 readRichText:atPosition: \
  11. writeRichText:forRun:atPosition:emitDefaultRichText.  \
  12.  
  13. \f0\fs28\fi0 \
  14. However, no matter what I try, these methods are never called.  I have also tried implementing the equivalent delegate methods:\
  15. \
  16.  
  17. \f1\fs24\fi720 textWillReadRichText:stream:atPosition: \
  18. textWillWriteRichText:stream:forRun:atPosition:emitDefaultRichText: \
  19.  
  20. \f0\fs28\fi0 \
  21. but I'm not getting anywhere here either.  What am I doing wrong?\
  22.  
  23. \i     \
  24.  
  25. \i0 A:  While these methods were implemented under 1.0, they have been obsoleted by 
  26. \f1\fs24 replaceSelWithCell:
  27. \f0\fs28  and its associated methods in subsequent releases.  Although these methods appear in the header file and the specification sheet for the Text object, they are never called within your application.\
  28. \
  29. QA665        \
  30. \
  31. Valid for 2.0, 3.0\
  32. \
  33.  
  34.